<!DOCTYPE HTML>
<html>

<head>
<title>Pheonixfire</title>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/prototype/1.7.0.0/prototype.js"></script>
<script type="text/javascript">
function postVar(form)
{
var url = document.location.href;
var input = form.inputbox.value; // OR: document.inputform.inputbox.value
url = url.split("?");
document.location.href = url[0] + "?" + input;

}

var got = window.location.search.substring(1);
got = got.split("=");
document.write(got[1]);

</script>
</head>

<body>
<form name="inputform" action="" method="GET">
<p>Input box</p>
<input type="text" name="inputbox" value="">
<input type="button" name="button" value="Click" onClick="postVar(this.form)">
</form>

</body>

</html>
